﻿using Microsoft.Phone.BackgroundTransfer;
using Q42.WinRT.Data;
using SpaceNeedle.SDK.Windows.Platform.Commands;
using SpaceNeedle.SDK.Windows.Platform.Data;
using SpaceNeedle.x6473.WindowsPhone.Common;
using SpaceNeedle.x6473.WindowsPhone.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Input;

namespace SpaceNeedle.x6473.WindowsPhone.ViewModels
{
    public class UploadsViewModelSampleData : UploadsViewModel
    {
        public UploadsViewModelSampleData() :base()
        {
            this.AppContent = new AppContent();
            this.AppContent.Name = "Microsoft Cidadão Conectado";
            this.AppContent.Uploads.Title = "Uploads";

            this.StaticContent = this.AppContent.Uploads;
            
            var transfers = new List<BackgroundTransferRequestInfo>();
            transfers.Add(new BackgroundTransferRequestInfo() { Tag = "Upload 1 Upload 1 Upload 1 Upload 1 Upload 1 Upload 1 Upload 1 vUpload 1", BytesSent = 24000, TotalBytesToSend = 50000, TransferStatus = TransferStatus.Transferring, RequestId = "ddddd" });
            transfers.Add( new BackgroundTransferRequestInfo(){ Tag = "Upload 2", BytesSent = 18400, TotalBytesToSend = 67000, TransferStatus = TransferStatus.Waiting, RequestId = "ddddd"});
            
            this.TransferRequestsInfo = transfers;
        }
    }
}
